package com.itheima.mapper;

import com.itheima.pojo.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author YangJiaHao
 */
@Mapper
public interface CategoryMapper {

    Integer save(Category category);

    List<Category> getList(Integer type);

    Long count();

    List<Category> page(@Param("start") Integer start, @Param("pageSize") Integer pageSize);

    Integer delete(@Param("id") String id);

    Integer update(Category category);

    List<Category> selectList();
}
